package com.mdz.myapplication.Entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 权限信息表
 * </p>
 *
 * @author 孟德志
 * @since 2021-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("action")
public class Action extends Model<Action> {

    private static final long serialVersionUID=1L;

    /**
     * 权限自动编号
     */
    @TableId(value = "actionid", type = IdType.AUTO)
    private Integer actionid;

    /**
     * 权限名称
     */
    @TableField("actionname")
    private String actionname;

    /**
     * 权限分栏号
     */
    @TableField("actioncolumnid")
    private Integer actioncolumnid;

    /**
     * 权限字符串
     */
    @TableField("action")
    private String action;

    /**
     * 是否可见
     */
    @TableField("viewmode")
    private String viewmode;


    @Override
    protected Serializable pkVal() {
        return this.actionid;
    }

}
